import App from './App'
import { createPinia } from 'pinia';
const pinia = createPinia();

// #ifndef VUE3
import Vue from 'vue'

import './uni.promisify.adaptor'
Vue.config.productionTip = false
Vue.use(pinia)
App.mpType = 'app'
const app = new Vue({
  ...App,
  pinia
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue';
import 'default-passive-events'
import uviewPlus from '@/uni_modules/uview-plus';
uni.requireLazy = () => false
export function createApp() {
  const app = createSSRApp(App);
  app.use(uviewPlus);
  app.use(pinia);
  return {
    app
  }
}
// #endif
